/**
 * Copyright [2019] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.infodb.zuul.bean;

import com.hyts.infodb.bean.bo.BaseBO;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import javax.persistence.Column;
import javax.persistence.ElementCollection;
import java.util.Set;

/**
 * @project-name:infodb
 * @package-name:com.hyts.infodb.zuul.bean
 * @author:LiBo/Alex
 * @create-date:2019-10-14 16:20
 * @copyright:libo-alex4java
 * @email:liboware@gmail.com
 * @description:
 */
@Data
public class ZuulRouteBO extends BaseBO {

    /**
     * route 路由名称
     */
    private String name;

    /**
     * path 请求path pattern
     */
    private String path;

    /**
     * url dispatcher url website
     */
    private String url;

    /**
     *  Flag to determine whether the prefix for this route (the path, minus pattern
     *  patcher) should be stripped before forwarding.
     */
    private Boolean stripPrefix;

    /**
     * is or not enable
     */
    private Boolean enabled;

    /**
     * senstive header头
     */
    @Transient
    private Set<String> sensitiveHeaders;

    /**
     * 是否定制化header头
     */
    @Transient
    private Boolean customSensitiveHeaders;

}
